import { createRouter, createWebHistory, RouteRecordRaw } from "vue-router";

const routes: Array<RouteRecordRaw> = [
    {
        path: '/',
        name: 'R_regists',
        component: () => import('../vitew/Regist/R_regists.vue')//注册
    },
    {
        path: '/R_Showlogin',
        name: 'R_Showlogin',
        component: () => import('../vitew/Regist/R_Showlogin.vue')//显示
    },
    {
        path: '/UserLogin',
        name: 'UserLogin',
        component: () => import('../vitew/Role/UserLogin.vue')//登录
    },
    {
        path: '/AdminShow/:Uid',
        name: 'AdminShow',
        component: () => import('../vitew/Role/AdminShow.vue')//管理员显示
    },
    {
        path: '/RegistAdmin/:Uid',
        name: 'RegistAdmin',
        component: () => import('../vitew/Role/RegistAdmin.vue')//管理员显示
    },
    {
        path: '/ShowAdmin',
        name: 'ShowAdmin',
        component: () => import('../vitew/Role/ShowAdmin.vue')//管理员显示
    },
]

const router = createRouter({
    history: createWebHistory(),
    routes
})

export default router;